package com.javaframe.role.tools;

import java.util.List;

public class ResponseData<T> {
	private String identifier;
	private String label;
	private List<T> items;	
	private PageInfo pageInfo;
	
	public PageInfo getPageInfo() {
		return pageInfo;
	}
	public void setPageInfo(PageInfo pageInfo) {
		this.pageInfo = pageInfo;
	}
	public ResponseData(List<T> items,String id) {
		this.identifier = id;
		this.label="name";
		this.items = items;
		this.pageInfo = null;
	}
	public ResponseData(List<T> items,PageInfo pageInfo, String id) {
		this.identifier = id;
		this.label="name";
		this.items = items;
		this.pageInfo = pageInfo;
	}
	public String getIdentifier() {
		return identifier;
	}
	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public List<T> getItems() {
		return items;
	}
	public void setItems(List<T> items) {
		this.items = items;
	}
}
